Skip to content

Add automation to remove 17 obsolete branches#21

Draft
benarch with Copilot wants to merge 5 commits into
mainfrom
copilot/remove-older-branches
Draft

Add automation to remove 17 obsolete branches#21
benarch with Copilot wants to merge 5 commits into
mainfrom
copilot/remove-older-branches

Conversation

Copilot AI commented Feb 3, 2026

Copy link
Copy Markdown

Repository has accumulated 17 obsolete branches that need removal while preserving main.

Changes

Created deletion automation with three execution paths:

  • .github/workflows/cleanup-old-branches.yml - Manual-trigger workflow that deletes all 17 branches atomically. Uses exact ref matching (refs/heads/$branch$) to prevent false positives.

  • scripts/delete-old-branches.sh - Interactive bash script with confirmation prompt. Lists deleted/failed branches and shows final remote state via git ls-remote.

  • docs/BRANCH_CLEANUP.md - Execution guide covering workflow trigger, script usage, and manual GitHub UI deletion.

Branches to Remove

container
copilot/add-ai-chatbot-agent
copilot/add-copilot-seats-view
copilot/add-github-copilot-integration
copilot/add-github-export-tool
copilot/add-team-usage-report-page
copilot/fix-29985769-1145060471-3d22a403-533a-4231-ba2c-189bc9958005
copilot/implement-ndjson-ingestion-pipeline
dependabot/npm_and_yarn/api/npm_and_yarn-aa68fbd092
feature-4
feature-chatbot-agent
feature-code-quality-security
feature-enhancements
feature-visual-refinements
main-1
test-chat-agent-interactions
testing-file-fetch

Execution

After merge, trigger cleanup via Actions tab → "Cleanup Old Branches" → "Run workflow", or run ./scripts/delete-old-branches.sh locally with push access.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 3, 2026 15:55
Co-authored-by: benarch <29985769+benarch@users.noreply.github.com>
Co-authored-by: benarch <29985769+benarch@users.noreply.github.com>
Co-authored-by: benarch <29985769+benarch@users.noreply.github.com>
Co-authored-by: benarch <29985769+benarch@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove older branches except main from the repository Add automation to remove 17 obsolete branches Feb 3, 2026
Copilot AI requested a review from benarch February 3, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants